<?php

namespace app\admin\validate\activityform;

use think\Validate;

class Fromurl extends Validate
{
    protected $name = 'activityform_fromurl';

    protected $rule = [
        'sn' => 'require|unique:activityform_fromurl'
    ];

    protected $message  =   [
        'sn.require' => '标识码不能为空',
        'sn.unique' => '标识码必须唯一'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];

}
